<!-- 模块说明 -->
<template>
    <div class="top">
        <div>
            <router-link to="/city" class="citycss">{{ city }}</router-link>
        </div>
        <input type="text" class="center" placeholder="文本">
        <div><router-link to="/me" class="citycss">我的</router-link></div>
    </div>
</template>

<script setup lang="ts">
import { ref, onMounted, } from 'vue'
import { useRouter } from 'vue-router';
const router = useRouter()
const city = ref(localStorage.getItem('city') || "沈阳")
</script>
<style lang="scss" scoped>
.top {
    display: flex;
    justify-content: space-between;
    padding: 15px;
    background: rgb(246, 72, 38);

    .citycss {
        color: #fff;
        font-size: 18px;
    }

    .center {
        width: 220px;
        height: 28px;
        border-radius: 25px;
        outline: 0;
        text-indent: 2rem;
    }
}
</style>
